<?php /* Smarty version 2.6.26, created on 2013-08-20 10:13:12
         compiled from video_admin.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'l', 'video_admin.tpl', 18, false),array('modifier', 'thumb', 'video_admin.tpl', 18, false),array('modifier', 'date_format', 'video_admin.tpl', 21, false),)), $this); ?>
<div class="box">
  <div class="box-content">
	  <form method="post">
      <table class="adminlist">
      <thead>
      <tr>
        <th width="30">ID</th>
        <th width="120">Thumbnail</th>
        <th>Thông tin</th>
        <th width="100">Trạng thái</th>
        <th width="100">Chỉnh sửa</th>
      </tr>
      </thead>
      <tbody>
      <?php $_from = $this->_tpl_vars['aVideo']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['video']):
?>
      <tr>
        <td><?php echo $this->_tpl_vars['video']['video_id']; ?>
</td>
        <td><a href="<?php echo ((is_array($_tmp='video/detail/%d')) ? $this->_run_mod_handler('l', true, $_tmp, $this->_tpl_vars['video']['video_id']) : smarty_modifier_l($_tmp, $this->_tpl_vars['video']['video_id'])); ?>
" target="_blank"><img src="<?php echo ((is_array($_tmp=$this->_tpl_vars['video']['video_thumb'])) ? $this->_run_mod_handler('thumb', true, $_tmp, 'h75') : smarty_modifier_thumb($_tmp, 'h75')); ?>
" /></a></td>
        <td>
					<a href="<?php echo ((is_array($_tmp='video/detail/%d')) ? $this->_run_mod_handler('l', true, $_tmp, $this->_tpl_vars['video']['video_id']) : smarty_modifier_l($_tmp, $this->_tpl_vars['video']['video_id'])); ?>
" target="_blank"><?php echo $this->_tpl_vars['video']['video_title']; ?>
</a><br />
					<span><?php echo ((is_array($_tmp=$this->_tpl_vars['video']['video_created'])) ? $this->_run_mod_handler('date_format', true, $_tmp) : smarty_modifier_date_format($_tmp)); ?>
</span>
				</td>
        <td align="center"><?php if ($this->_tpl_vars['video']['video_published'] == 0): ?>Ẩn<?php else: ?>Đã xuất bản<?php endif; ?></td>
        <td align="center" nowrap="nowrap">
          <a href="<?php echo ((is_array($_tmp='video/edit/%d')) ? $this->_run_mod_handler('l', true, $_tmp, $this->_tpl_vars['video']['video_id']) : smarty_modifier_l($_tmp, $this->_tpl_vars['video']['video_id'])); ?>
">Sửa</a> - 
          <a class="confirm" href="<?php echo ((is_array($_tmp='video/delete/%d')) ? $this->_run_mod_handler('l', true, $_tmp, $this->_tpl_vars['video']['video_id']) : smarty_modifier_l($_tmp, $this->_tpl_vars['video']['video_id'])); ?>
">Xóa</a>
				</td>
      </tr>
      <?php endforeach; else: ?>
      <tr>
        <td colspan="5" align="center">(Hiện chưa có video nào.)</td>
      </tr>
      <?php endif; unset($_from); ?>
      </tbody>
      </table>
      </form>
  </div>
</div>